/**
 * 拼接URL时去除连接处重复的斜线
 **/
export default function urlPathConcat(first, ...rest) {
	const ret = first.replace(/\/$/, '');

	return rest.reduce((url, x) => `${url}/${x.replace(/^\//, '')}`, ret);
}
